import java.text.SimpleDateFormat

/**
 * 
 */

/**
 * <DL><DT>标题</DT></DL>
 *
 * @author liuboen
 * 
 * @since 2012-9-24
 * @version 1.0.0
 */
class ClosureTest {

	static main(args) {
		def array = [["a","b"],["a","b"]];
		String a= "b";
		
		def p=  {println "[" + it + "]" };
		def p2 = {str,str2-> "[" + str + str2 +"]"}
		
		p array[0][1];
		p localMethod();
	}

	def static localMethod() {
		def localVariable = new java.util.Date()
		def simp = new SimpleDateFormat("YY-MM-DD hh:mm:ss");
		def dateStr = simp.format(localVariable);
		return dateStr
	  }
}
